package com.whfc.fmam.entity.enums;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-07-29 16:24
 */
public enum MatPlanOptionResult {

    QUALIFIED(0, "合格"),

    UNQUALIFIED(1, "不合格");

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    MatPlanOptionResult(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static MatPlanOptionResult parseValue(int value) {
        switch (value) {
            case 1:
                return QUALIFIED;
            case 2:
                return UNQUALIFIED;
            default:
                return null;
        }
    }
}
